package com.stefan.snake;

import javax.swing.*;
import java.awt.*;

public class StartGame {

    public static void main(String[] args) {
        JFrame jFrame = new JFrame();

        jFrame.setBounds(10,10,900,720);
        jFrame.setResizable(false);// 窗口大小不可变
        jFrame.setVisible(true);
        jFrame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);

        // 正常游戏界面都应该在面板上
        GamePanel gamePanel = new GamePanel();
        jFrame.add(gamePanel);
    }
}
